package cn.com.surker.material.dao;

import cn.com.surker.material.entity.MaterialInfo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 材料信息表(材料名称,规格不能修改,仅新增) Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2023-07-12
 */
public interface MaterialInfoDao extends BaseMapper<MaterialInfo> {

	@Override
	<E extends IPage<MaterialInfo>> E selectPage(E page, @Param(Constants.WRAPPER) Wrapper<MaterialInfo> queryWrapper);

	@Override
	List<MaterialInfo> selectList(@Param(Constants.WRAPPER) Wrapper<MaterialInfo> queryWrapper);

	@Override
	MaterialInfo selectById(Serializable id);
}
